<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
<spring:url value="/authenticate" var="authenticate_url" />
</head>

<body>

<h2>Login</h2>

<c:if test="${loginFailed!=null}">
	<div style="color: red">Could not sign in, please check your username/password</div>
</c:if>  

   <form name='f' action="${authenticate_url}" method='POST'>
      <table>
         <tr>
            <td>Username:</td>
            <td><input type='text' name='j_username' value=''></td>
         </tr>
         <tr>
            <td>Password:</td>
            <td><input type='password' name='j_password' /></td>
         </tr>
         <tr>
            <td><button type="submit">Sign In</button></td>
         </tr>
      </table>
  </form>
</body>
</html>